import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


//定义时间过滤器
Vue.filter('dataFormate', function (val) {
  var dt = new Date(val)
  var y = dt.getFullYear()
  var m = (dt.getMonth() + '').padStart(2, '0')
  var d = (dt.getDate() + '').padStart(2, '0')
  var hh = (dt.getHours() + '').padStart(2, '0')
  var mm = (dt.getMinutes() + '').padStart(2, '0')
  var ss = (dt.getSeconds() + '').padStart(2, '0')
  return `${y}-${m}-${d} ${hh}:${mm}:${ss}`
})

Vue.config.productionTip = false

//引入element-ui
import 'element-ui/lib/theme-chalk/index.css';
import elementUi from './element/index'

// import './assets/element-variables.scss'
Vue.use(elementUi)

//导入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor)


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
